package zev;

/**
 * @ProjectName: Learning
 * @Package: zev
 * @ClassName: Comparator
 * @Description: 自定义泛型接口  接口中泛型字母只能使用在方法中，不能使用在全局常量中
 * @Author: ZhangZewei
 * @CreateDate: 2018/11/7 22:54
 * @UpdateUser: ZhangZewei
 * @UpdateDate: 2018/11/7 22:54
 * @UpdateRemark: The modified content
 * @Version: 1.0
 */
public interface Comparator <T1,T2> {

    //public static final T1 MAX_VALUE = 100; //接口中泛型字母不能使用在全局常量中
    //T1 MAX_VALUE;
    public static final int MAX_VALUE = 100;

    void compare(T2 t);
    T2 compare();
    public abstract T1 compare2(T2 t);


}
